package com.cms.service.converter;


import com.cms.dao.entity.LogEntity;
import com.cms.service.dto.LogDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author laolang
 * @version 1.0.0
 * @ClassName LogConverter  dto与entity相互转换
 */
@Mapper
public interface LogConverter {
    LogConverter CONVERTER =  Mappers.getMapper(LogConverter.class);
    //dto 转entity
    LogDto  DtotoEntity(LogEntity entity);
    //entity转dto
    LogEntity  EntitytoDto(LogDto dto);

}
